package com.itany.nmms.service;

import com.itany.nmms.entity.Staff;
import com.itany.nmms.exception.CodeErrorException;
import com.itany.nmms.exception.RequestParameterErrorException;
import com.itany.nmms.exception.StaffNotExistException;

/**
 * @Author:石小俊
 * @Date:2023/1/3 16:16
 * @Version:1.0-SNAPSHOT
 * @Description:
 */
public interface StaffService {

    /**
     * 员工登录
     * @param loginName 账号
     * @param password  密码
     * @param role      角色,1001-系统管理员,1002-普通管理员
     * @param code      用户输入的验证码
     * @param image     图片中的验证码
     * @return
     */
    public Staff login(String loginName,String password,String role,String code,String image) throws RequestParameterErrorException, CodeErrorException, StaffNotExistException;

}
